﻿<Window xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
        xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
        mc:Ignorable="d" 
        x:Class="sunsetmp.PlayerWindow" x:Name="PWindow" Title="Sunset Player" MaxWidth="376" MinWidth="376"  Width="376" Height="auto" Icon="/Themes/Icons/Logo.ico" Background="{x:Null}" Foreground="{x:Null}" AllowDrop="True" ScrollViewer.VerticalScrollBarVisibility="Disabled" Closing="Window_Closing_1" AllowsTransparency="True" WindowStyle="None" Focusable="False" IsTabStop="True" StateChanged="Sunset_Player_StateChanged" MouseWheel="Window_MouseWheel_1" Initialized="PWindow_Initialized" ResizeMode="NoResize">
    <Grid>
        <ListBoxItem x:Name="GetStyleItem"  Opacity="0"/>
        <Grid x:Name="BackgroundGrid" Background="White"  Opacity="0.002" Visibility="Visible"  MouseMove="BackgroundGrid_MouseMove" HorizontalAlignment="Stretch"  />
        <Grid  x:Name="SpoilerGrid" HorizontalAlignment="Center" VerticalAlignment="Bottom" Height="56" Margin="0,0,110,0" Width="92">
            <Border Grid.Column="0" HorizontalAlignment="Stretch"  Background="{DynamicResource MyBackground}" CornerRadius="9"/>
            <Grid x:Name="WindowButtonGrid" Margin="6" HorizontalAlignment="Left">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="22"/>
                    <ColumnDefinition Width="22"/>
                    <ColumnDefinition Width="22"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition/>
                    <RowDefinition/>
                </Grid.RowDefinitions>
                <Grid  x:Name="CloseWGrid" Grid.Column="0" Grid.Row="0" >
                    <Button x:Name="CloseW" Click="Close_Click" ToolTip="Выход"/>
                    <Path Data="{StaticResource closeStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.7" ScaleY="0.7"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
                <Grid Grid.Column="1" Grid.Row="0">
                    <Button x:Name="ToTray" Click="ToTray_Click"  ToolTip="Свернуть в трей"/>
                    <Path Data="{StaticResource fullscreenStyle0}" Fill="{DynamicResource MyItemColor}"  Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleY="-0.7" ScaleX="0.7"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
                <Grid x:Name="MinimizeGrid" Grid.Column="2" Grid.Row="0">
                    <Button x:Name="Minimize" Click="Minimize_Click" ToolTip="Свернуть" />
                    <Rectangle Width="14" Height="2" Fill="{DynamicResource MyItemColor}"   IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" VerticalAlignment="Center" Margin="5,17,4,3"  />
                </Grid>
                <Grid Grid.Row="1" Grid.Column="1">
                    <Button x:Name="TopButton"  ToolTip="Поверх всех окон" Click="TopButton_Click"/>
                    <Path x:Name="LockIcon"  Data="{StaticResource lockStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.7" ScaleY="0.8"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                    <Path x:Name="UnlockIcon" Data="{StaticResource unlockStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.7" ScaleY="0.8"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
                <Grid x:Name="SettingsGrid" Grid.Column="0" Grid.Row="1">
                    <Button x:Name="SettingsButton"  ToolTip="Настройки" Click="SettingsButton_Click"/>
                    <Path Data="{StaticResource toolsStyle0}"  Fill="{DynamicResource MyItemColor}"  Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleY="-0.7" ScaleX="0.7"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
                <Grid x:Name="RotateGrid" Grid.Column="2" Grid.Row="1">
                    <Button x:Name="Rotate"  ToolTip="Повернуть" Click="Rotate_Click"/>
                    <Path Data="{StaticResource redoStyle0}"  Fill="{DynamicResource MyItemColor}"  Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleY="-0.7" ScaleX="0.7"/>
                                <SkewTransform/>
                                <RotateTransform Angle="-90"/>
                                <TranslateTransform/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
            </Grid>
        </Grid>
        <Grid x:Name="PlayerHead" VerticalAlignment="Bottom" Width="300" HorizontalAlignment="Right" Height="50" Margin="0,0,0,6" Visibility="Visible" >
            <Grid.RowDefinitions>
                <RowDefinition Height="8"/>
                <RowDefinition Height="28"/>
                <RowDefinition x:Name="TopSplitGrid" Height="4"/>
                <RowDefinition/>
                <RowDefinition x:Name="BottomSplitGrid" Height="30"/>
                <RowDefinition Height="28"/>
                <RowDefinition Height="8"/>
            </Grid.RowDefinitions>
            <Border Grid.RowSpan="7" x:Name="TopBorder" Width="300" Background="{DynamicResource MyBackground}" CornerRadius="8" Opacity="0.9" MouseLeftButtonDown="TopBorder_MouseLeftButtonDown" MouseMove="TopBorder_MouseMove"/>
            <Grid >
                <Grid x:Name="TopGripBkg" Background="Black" Opacity="0.002" MouseLeftButtonDown="GripBkg_MouseLeftButtonDown" MouseLeftButtonUp="GripBkg_MouseLeftButtonUp" Cursor="SizeNS" MouseMove="TopGripBkg_MouseMove"/>
                <Rectangle x:Name="TopSizeLine" IsHitTestVisible="False" Fill="{DynamicResource MyItemColor}" Height="2" Width="70" Opacity="0.7" Margin="3" />
            </Grid>
            <Grid Grid.Row="6">
                <Grid x:Name="BottomGripBkg" Background="Black" Opacity="0.002" MouseLeftButtonDown="GripBkg_MouseLeftButtonDown" MouseLeftButtonUp="GripBkg_MouseLeftButtonUp" Cursor="SizeNS" MouseMove="BottomGripBkg_MouseMove"/>
                <Rectangle x:Name="BottomSizeLine" IsHitTestVisible="False" Fill="{DynamicResource MyItemColor}" Height="2" Width="70" Opacity="0.7" Margin="3" />
            </Grid>
            <Grid x:Name="TitleGrid" VerticalAlignment="Top" Grid.Row="1" Margin="4,2,4,2">
                <Grid x:Name="TitleBkg" Background="Black" Opacity="0.002" MouseEnter="TitleBkg_MouseEnter"/>
                <Label IsHitTestVisible="False" HorizontalAlignment="Left" VerticalAlignment="Top" Width="292"  Visibility="Visible" x:Name="ArtistTitle" Foreground="{DynamicResource MyTextColor}" Content="Ничего не выбрано" Margin="0,-3,-2,0" />
                <Slider Visibility="Hidden" Margin="0,2,0,0" Opacity="0.95" x:Name="timelineSlider" HorizontalAlignment="Center" VerticalAlignment="Top" Width="286" Height="Auto"  Cursor="Hand" ValueChanged="timelineSlider_ValueChanged" MouseLeftButtonDown="timelineSlider_MouseLeftButtonDown" MouseLeftButtonUp="timelineSlider_MouseLeftButtonUp" />
            </Grid>
            <Grid x:Name="LocalList" Margin="4,3,4,3" VerticalAlignment="Top" Grid.Row="3" Visibility="Hidden" >
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="*"/>
                    <ColumnDefinition Width="8"/>
                    <ColumnDefinition Width="22"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="28"/>
                    <RowDefinition Height="8"/>
                    <RowDefinition Height="22"/>
                    <RowDefinition Height="4"/>
                    <RowDefinition Height="22"/>
                    <RowDefinition Height="4"/>
                    <RowDefinition Height="22"/>
                    <RowDefinition Height="1*"/>
                </Grid.RowDefinitions>
                <ComboBox  x:Name="PLNameBox" Grid.Row="0" Grid.ColumnSpan="3" Height="auto" SelectionChanged="PLNameBox_SelectionChanged" MouseDoubleClick="PLNameBox_MouseDoubleClick" KeyDown="PLNameBox_KeyDown" FontFamily="Calibri" Drop="PLNameBox_Drop" AllowDrop="True" MouseMove="PLNameBox_MouseMove"/>
                <ListBox x:Name="local" Grid.Row="2" Grid.RowSpan="6" VerticalAlignment="Stretch" Background="{x:Null}" BorderBrush="{x:Null}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="True" AllowDrop="True" Drop="local_Drop" MouseDoubleClick="local_MouseDoubleClick" ContextMenuOpening="local_ContextMenuOpening" />
                <Grid Grid.Column="2" Grid.Row="2">
                    <Button x:Name="AddNewPL" Click="AddNewPL_Click" ToolTip="Добавить плейлист" />
                    <Path Data="{StaticResource page_addStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.55" ScaleY="0.7"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
                <Grid Grid.Column="2" Grid.Row="6">
                    <Button x:Name="DelPL" Click="DelPL_Click"  ToolTip="Удалить плейлист"/>
                    <Path Data="{StaticResource page_minusStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False"  IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.55" ScaleY="0.7"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
                <Grid Grid.Column="2" Grid.Row="4">
                    <Button x:Name="ViewExplorer" Click="ViewExplorer_Click" ToolTip="Добавиьт музыку в текущий плейлист" />
                    <Path Data="{StaticResource page_searchStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                        <Path.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.55" ScaleY="0.7"/>
                            </TransformGroup>
                        </Path.RenderTransform>
                    </Path>
                </Grid>
            </Grid>
            <Grid x:Name="WebList" Margin="4,3,4,3" Grid.Row="3" VerticalAlignment="Top" Visibility="Hidden">
                <Grid.ColumnDefinitions>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                    <ColumnDefinition Width="24.25"/>
                </Grid.ColumnDefinitions>
                <Grid.RowDefinitions>
                    <RowDefinition Height="22"/>
                    <RowDefinition Height="3"/>
                    <RowDefinition Height="30"/>
                    <RowDefinition Height="3"/>
                    <RowDefinition Height="22"/>
                    <RowDefinition Height="3"/>
                    <RowDefinition Height="*"/>
                </Grid.RowDefinitions>
                <Grid Grid.Column="0" Grid.ColumnSpan="3" VerticalAlignment="Stretch">
                    <Button x:Name="MyPageButton" ToolTip="Аудиозаписи со страницы" Click="MyPageButton_Click" Background="{DynamicResource DisabledArrowFrame}"/>
                    <Path IsHitTestVisible="False" Data="{StaticResource homeStyle0}" Fill="{DynamicResource MyVkItemColor}" Margin="2"  Stretch="Uniform" />
                </Grid>
                <Grid Grid.Column="3" Grid.ColumnSpan="3" VerticalAlignment="Stretch">
                    <Button x:Name="GroupPageButton" ToolTip="Аудиозаписи сообществ" Background="{DynamicResource TabControlItemBackgroundNormal}" Click="GroupPageButton_Click" />
                    <Path IsHitTestVisible="False" Data="{StaticResource placesStyle0}" Fill="{DynamicResource MyVkItemColor}" Margin="2"  Stretch="Uniform" />
                </Grid>
                <Grid Grid.Column="6" Grid.ColumnSpan="3" VerticalAlignment="Stretch">
                    <Button x:Name="FriendPageButton" ToolTip="Аудиозаписи друзей" Click="FriendPageButton_Click" Background="{DynamicResource TabControlItemBackgroundNormal}"/>
                    <Path IsHitTestVisible="False" Data="{StaticResource peopleStyle0}" Fill="{DynamicResource MyVkItemColor}" Margin="2"  Stretch="Uniform" />
                </Grid>
                <Grid Grid.Column="9" Grid.ColumnSpan="3" VerticalAlignment="Stretch">
                    <Button x:Name="NewsPageButton" ToolTip="Аудиозаписи из новостей" Click="NewsPageButton_Click" Background="{DynamicResource TabControlItemBackgroundNormal}"/>
                    <Path IsHitTestVisible="False" Data="{StaticResource newspaperStyle0}" Fill="{DynamicResource MyVkItemColor}" Margin="2"  Stretch="Uniform" />
                </Grid>
                <Grid Grid.Row="2" HorizontalAlignment="Center" Margin="0,2,0,0" Width="25" Height="25">
                    <Button x:Name="UpdateButtonUser" Background="{DynamicResource ControlLightBackground}" ClipToBounds="True" ToolTip="Обновть список" RenderTransformOrigin="0.5,0.5" Click="UpdateButtonUser_Click" MouseRightButtonDown="UpdateButtonUser_MouseRightButtonDown" />
                    <Path x:Name="UserUpdateIcon" Height="18" Width="14" Stretch="Fill" Fill="{DynamicResource MyVkItemColor}" Data="{StaticResource refreshStyle0}" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" />
                </Grid>
                <Grid x:Name="TBGrid" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="12" Margin="2,0,0,0">
                    <TextBox  x:Name="SearchBoxMy" ToolTip="Поиск по аудиозаписям" FontSize="14" FontStyle="Italic" Height="Auto" KeyDown="SearchBoxMy_KeyDown"  />
                    <Grid x:Name="SearchAudio_Button" Cursor="Hand" Background="White" Opacity="0.002" Height="22" Width="22" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,4,0" MouseLeftButtonDown="SearchAudio_Button_MouseLeftButtonDown" />
                    <Path Width="20.7781" Height="20.7781" Stretch="Fill" Fill="{DynamicResource MyVkItemColor}" Data="{StaticResource magnifyStyle0}" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,0,4,0" />
                </Grid>
                <Grid x:Name="CMBGrid" Grid.Row="2" Grid.Column="1" Grid.ColumnSpan="12" Margin="2,0,0,0" Visibility="Hidden">
                    <ComboBox x:Name="SearchBoxGroup" FontStyle="Italic" Background="{DynamicResource MyCMBColor}" Height="Auto" Width="auto"  SelectionChanged="SearchBoxGroup_SelectionChanged" ScrollViewer.CanContentScroll="False" />
                    <Grid Cursor="Hand" Background="White" Opacity="0.002" Height="28" Width="28" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,4,27,5" />
                    <Path Width="20.7781" Height="20.7781" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" Stretch="Fill" Fill="{DynamicResource MyVkItemColor}" Data="{StaticResource magnifyStyle0}" VerticalAlignment="Center" HorizontalAlignment="Right" Margin="0,4,27,5" />
                </Grid>
                <Button x:Name="AudioButton" Grid.Row="4" Grid.ColumnSpan="4" Content="Аудиозаписи" Foreground="{DynamicResource MyVkItemColor}" Background="{DynamicResource DisabledArrowFrame}" Click="AudioButton_Click"/>
                <Button x:Name="AlbumButton" Grid.Row="4" Grid.Column="4" Grid.ColumnSpan="4" Content="Альбомы" Foreground="{DynamicResource MyVkItemColor}" Background="{DynamicResource TabControlItemBackgroundNormal}" Click="AlbumButton_Click"/>
                <Button x:Name="WallButton" Grid.Column="8" Grid.Row="4" Grid.ColumnSpan="4" Content="Стена" Foreground="{DynamicResource MyVkItemColor}" Background="{DynamicResource TabControlItemBackgroundNormal}" Click="WallButton_Click"/>
                <ListBox x:Name="web" Grid.Row="6" Grid.ColumnSpan="12" HorizontalAlignment="Stretch" Background="{x:Null}" BorderBrush="{x:Null}" ScrollViewer.HorizontalScrollBarVisibility="Disabled" ScrollViewer.CanContentScroll="True" MouseDoubleClick="web_MouseDoubleClick" ContextMenuOpening="web_ContextMenuOpening"/>
            </Grid>
        </Grid>
        <Grid x:Name="PlayerBody" Height="56" HorizontalAlignment="Right" VerticalAlignment="Bottom"   Width="300" >
            <Border   CornerRadius="9" Background="{DynamicResource MyBackground}" BorderThickness="1" BorderBrush="Black" MouseLeftButtonDown="Border_MouseLeftButtonDown_1" MouseEnter="PlayerBody_MouseEnter" >
                <Grid>
                    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Height="35" >
                        <Grid.ColumnDefinitions>
                            <ColumnDefinition Width="15"/>
                            <ColumnDefinition Width="35"/>
                            <ColumnDefinition Width="12"/>
                            <ColumnDefinition Width="35"/>
                            <ColumnDefinition Width="12"/>
                            <ColumnDefinition Width="35"/>
                            <ColumnDefinition Width="12"/>
                            <ColumnDefinition Width="35"/>
                            <ColumnDefinition Width="12"/>
                            <ColumnDefinition Width="35"/>
                            <ColumnDefinition Width="6"/>
                            <ColumnDefinition Width="*"/>
                            <ColumnDefinition Width="15"/>
                        </Grid.ColumnDefinitions>
                        <Grid.RowDefinitions>
                            <RowDefinition />

                        </Grid.RowDefinitions>
                        <Grid Grid.Column="0" Background="{DynamicResource MyBackground}" x:Name="LeftSpoilerGrid" MouseLeftButtonDown="LeftSpoilerGrid_MouseLeftButtonDown" MouseLeave="LeftSpoilerGrid_MouseLeave" MouseEnter="LeftSpoilerGrid_MouseEnter">
                            <Path  HorizontalAlignment="Left"  Width="10" Height="6"  x:Name="LeftSpoilerIcon" Data="{StaticResource chevron_downStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" Opacity="0.7"  >
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="90"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Grid Background="{DynamicResource MyBackground}" Grid.Column="13" x:Name="RightSpoilerGrid" MouseLeftButtonDown="RightSpoilerGrid_MouseLeftButtonDown" MouseEnter="RightSpoilerGrid_MouseEnter" MouseLeave="RightSpoilerGrid_MouseLeave" >
                            <Path Visibility="Hidden" Opacity="0.7" HorizontalAlignment="Right"  Width="10" Height="6"  x:Name="RightSpoilerIcon" Data="{StaticResource chevron_downStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5"  >
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform/>
                                        <SkewTransform/>
                                        <RotateTransform Angle="270"/>
                                        <TranslateTransform/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Grid x:Name="PlayPause" HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Grid.Column="1">
                            <Button x:Name="PlayButton" Click="PlayButton_Click" MouseRightButtonUp="PlayButton_MouseRightButtonUp"/>
                            <Path ToolTip="Воспроизвести" x:Name="PlayIcon" Data="{StaticResource playStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" Margin="2,0,-2.001,0"  >
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="0.4" ScaleY="0.6"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                            <Path x:Name="PauseIcon" ToolTip="Приостановить" Data="{StaticResource pauseStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" Visibility="Hidden"  >
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="0.5" ScaleY="0.6"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Grid x:Name="Previous" Grid.Column="3">
                            <Button x:Name="PrevButton" Click="PrevButton_Click" />
                            <Path x:Name="PrevIcon" Data="{StaticResource rewindStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" AllowDrop="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" >
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="0.65" ScaleY="0.4"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Grid x:Name="Next" Grid.Column="5">
                            <Button x:Name="NextButton" Click="NextButton_Click" />
                            <Path x:Name="NextIcon" Data="{StaticResource fastforwardStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" >
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="0.65" ScaleY="0.4"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Grid x:Name="List" Grid.Column="7">
                            <Button x:Name="ListButton" Click="ListButton_Click" ToolTip="Плейлист"/>
                            <Path x:Name="ListIcon" Data="{StaticResource paperStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" >
                                <Path.RenderTransform>
                                    <TransformGroup>
                                        <ScaleTransform ScaleX="0.5" ScaleY="0.7"/>
                                    </TransformGroup>
                                </Path.RenderTransform>
                            </Path>
                        </Grid>
                        <Grid x:Name="Search" Grid.Column="9">
                            <Button x:Name="SearchButton" Click="SearchButton_Click" ToolTip="Менеджер Вконтакте"/>
                            <Label IsEnabled="False" IsHitTestVisible="False" Content="В" FontSize="28" VerticalAlignment="Center" Foreground="{DynamicResource MyItemColor}" HorizontalAlignment="Center" Height="42" Width="33" FontFamily="Tahoma"  FontWeight="Bold" Margin="3,-5,-1,-2"/>
                        </Grid>
                        <Grid Grid.Column="11">
                            <Grid.ColumnDefinitions>
                                <ColumnDefinition/>
                                <ColumnDefinition Width="1"/>
                                <ColumnDefinition/>
                            </Grid.ColumnDefinitions>
                            <Grid.RowDefinitions>
                                <RowDefinition/>
                                <RowDefinition Height="19" />
                            </Grid.RowDefinitions>
                            <Grid Grid.Column="0" Grid.Row="0" Grid.ColumnSpan="3">
                                <Label x:Name="Time" Foreground="{DynamicResource MyTextColor}" Content="00:00"  FontSize="14" FontFamily="Calibri" Margin="-2,-7,-3,-2"/>
                            </Grid>
                            <Grid Grid.Column="0" Grid.Row="1">
                                <ToggleButton x:Name="RepeatButton" ToolTip="Повторять текущий трек" Click="Repeat_Click" />
                                <Path x:Name="RepIcon" Data="{StaticResource repeatStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" >
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform ScaleX="0.6" ScaleY="0.6"/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                            <Grid Grid.Column="2" Grid.Row="1">
                                <ToggleButton x:Name="RandomButton" ToolTip="В случайном порядке" Click="RandomButton_Click" />
                                <Path x:Name="RandomIcon" Data="{StaticResource shuffleStyle0}" Fill="{DynamicResource MyItemColor}" Stretch="Fill" IsEnabled="False" IsHitTestVisible="False" RenderTransformOrigin="0.5,0.5" HorizontalAlignment="Center" VerticalAlignment="Center" >
                                    <Path.RenderTransform>
                                        <TransformGroup>
                                            <ScaleTransform ScaleX="0.7" ScaleY="0.6"/>
                                        </TransformGroup>
                                    </Path.RenderTransform>
                                </Path>
                            </Grid>
                        </Grid>
                    </Grid>
                </Grid>
            </Border>
        </Grid>
    </Grid>
</Window>
